package com.gulimall.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.gulimallproduct.entity.SkuInfoEntity;
import com.gulimall.gulimallproduct.entity.SpuInfoEntity;
import com.gulimall.gulimallproduct.vo.SkuItemVo;
import com.gulimall.gulimallproduct.vo.SpuSaveVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author niujiaxing
 * @email sunlightcs@gmail.com
 * @date 2025-05-08 21:33:57
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //保存sku的基本信息 pms_sku_info
    void saveSkuInfo(SkuInfoEntity skuInfoEntity);
    //21、sku检索
    PageUtils queryPageByCondition(Map<String, Object> params);
    ////查出当前spuid对应所有sku的信息，品牌的名字
    List<SkuInfoEntity> getSkuBySpuId(Long spuId);
    // 展示当前sku的详情
    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}

